package com.thinvent.recommend.mapper;

import com.thinvent.recommend.entity.KbFileHistory;
import com.thinvent.recommend.mapper.base.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface KbFileHistoryMapper extends BaseMapper<KbFileHistory, String > {

    List<KbFileHistory> selectByUserAndActionTypes(
            @Param("userId") String userId,
            @Param("actionTypes") List<String> actionTypes
    );

    /**
     * 根据一组 USER_ID 批量查询历史记录
     */
    List<KbFileHistory> selectByUserIds(@Param("userIds") List<String> userIds);
}